|
|
|
|
|
|
|
Figure 11.3.
Listing the standard properties available to use
in your control. |
|
|
|
|
|
|
|
|
If your control is intended to be invisible at runtime, you should remove all the standard properties from the control. Otherwise, you should review the list to see which properties match the list of properties that you need in your control. The default list suggested by the wizard is a good starting point. |
|
|
|
|
|
|
|
|
Tip I would suggest that you add the hWnd property as well, even if you don't need it, because it will make it easier to use your control with more advanced applications that use the Win32 API calls. |
|
|
|
|
|
|
|
|
|
|
Caution Don't arbitrarily add every available property to the list. Some properties listed are for internal use by the control and shouldn't be exposed in the code. |
|
|
|
|
|
|
|
|
|
|
Notice that many of the properties of the controls that you placed on the control are listed here. After you select the properties you want and remove the ones you don't, click Next to continue. The next dialog box prompts you for any custom properties, events, or methods that you need for the control (see Figure 11.4). |
|
|
|
|
|